<?php
//主页的更多商品

//1.连接数据库
include "conn.php";

$result = $conn->query("select *from shoplist");
$arr = array();
for ($i = 0; $i < $result->num_rows; $i++) {
    $arr[$i] = $result->fetch_assoc();
}
echo json_encode($arr);
